import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: ()=>import ('../views/Layout.vue'),
      children:[
        {
          path: '',
      name: 'Home',
      component: ()=>import ('../views/Home.vue'),
        },
        {
          path: 'profile',
      name: 'Profile',
      component: ()=>import ('../views/Profile.vue'),
        },
        {
          path: 'tasks',
      name: 'Tasks',
      component: ()=>import ('../views/Tasks.vue'),
        },
      ]

    
    },
 
  ],
})

export default router
